.net converting bytearray to double[]

Posted by AJ on Stack Overflow See other posts from Stack Overflow or by AJ
Published on 2010-04-09T11:52:28Z Indexed on 2010/04/09 16:33 UTC
Read the original article Hit count: 323

Filed under:

Hello,

I am working with a database from a legacy app which stores 24 floating point values (doubles) as a byte array of length 192, so 8 bytes per value. This byte array is stored in a column of type image in a SQL Server 2005 database.

In my .net app I need to read this byte array and convert it to a array of type Double[24]. I can access the field easy enough reader.GetBytes(...) but how to convert the returned ByteArray to Double[24]

Any ideas?

Thanks,

AJ

© Stack Overflow or respective owner

Related posts about .NET